//
//  MinecraftViewTwoCollectionViewCell.m
//  CommunitySupermarketProiect
//
//  Created by 吕惠卿 on 2017/11/20.
//  Copyright © 2017年 吕惠卿. All rights reserved.
//

#import "MinecraftViewTwoCollectionViewCell.h"

@implementation MinecraftViewTwoCollectionViewCell
-(id)initWithFrame:(CGRect)frame{
    self= [super initWithFrame:frame];
    if (self) {
        [self creatUI];
    }
    return self;
}
-(void)creatUI{
    self.numLab = [[UILabel alloc]init];
    self.numLab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.numLab];
    [self.numLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).with.offset(5);
        make.right.equalTo(self.mas_right).with.offset(-5);
        make.top.equalTo(self.mas_top).with.offset(5);
        make.height.mas_equalTo(25);
    }];
    self.nameLab = [[UILabel alloc]init];
    self.nameLab.font = [UIFont systemFontOfSize:15.0];
    self.nameLab.textColor = [UIColor grayColor];
    self.nameLab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.nameLab];
    [self.nameLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).with.offset(5);
        make.right.equalTo(self.mas_right).with.offset(-5);
        make.top.equalTo(self.numLab.mas_bottom).with.offset(0);
        make.height.mas_equalTo(25);
    }];
}
@end
